package com.cy.ppj.dao.mapper.rule;

import com.cy.ppj.model.domian.rule.MenuRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface MenuRoleMapper extends BaseMapper<MenuRole> {

    List<Long> selectMenuIdByRoleId(@Param("roleId") Long roleId);

    void insertBatch(@Param("roleId") Long roleId, @Param("menuIds") List<Long> menuIds, @Param("time") Date time);

    void deleteByUpdateTime(@Param("roleId") Long roleId, @Param("updateTime") Date updateTime);

}
